if ENABLE_PROTOCOL_FB

ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../../build/
ASSEMBLY_NAME=Galaxium.Protocol.Facebook
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN = galaxium-protocol-fb.pc.in

COMPILE_TARGET = library

REFERENCES =  \
	-pkg:anculus-core \
	-pkg:mono-addins \
	-pkg:mono-addins-setup \
	-r:../../../dlls/Newtonsoft.Json.dll \
	-r:../../../dlls/libidn.dll \
	-r:../../../build/Galaxium.Client.dll \
	-r:../../../build/Galaxium.Core.dll \
	-r:../../../build/Galaxium.Gui.dll \
	-r:../../../build/Galaxium.Protocol.dll \
	-r:System \
	-r:System.Configuration \
	-r:System.Drawing \
	-r:System.Web \
	-r:System.Web.Services \
	-r:System.Xml

RESOURCES = Galaxium.Protocol.Facebook.addin 
EXTRAS = 
DATA_FILES = 

FILES =  \
	Connection/Data/BuddyList.cs \
	Connection/FBConnection.cs \
	Connection/Requests/AbstractRequest.cs \
	Connection/Requests/BuddyListRequest.cs \
	Connection/Requests/FriendsRequest.cs \
	Connection/Requests/LoginRequest.cs \
	Connection/Requests/MessagesRequest.cs \
	Connection/Requests/NotificationRequest.cs \
	Connection/Requests/PresenceRequest.cs \
	Connection/Requests/SettingsRequest.cs \
	Entities/FBAccount.cs \
	Entities/FBContact.cs \
	Entities/FBGroup.cs \
	Entities/FBPresence.cs \
	FBAccountCache.cs \
	FBConnectionInfo.cs \
	FBConstants.cs \
	FBConversation.cs \
	FBConversationManager.cs \
	FBProtocol.cs \
	FBSession.cs \
	Objects/FBDisplayImage.cs \
	TrustAllCertificatePolicy.cs  

GENERATED_FILES = AssemblyInfo.cs

all: $(ASSEMBLY)

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include

else
endif
